package com.sumainfor.pc.market;

import lombok.extern.log4j.Log4j2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author PuaChen
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EnableHystrixDashboard
@ComponentScan(basePackages = {"com.sumainfor.pc.market", "com.sumainfor.common.config"})
@MapperScan(basePackages = {"com.sumainfor.pc.market.dao"})
@Log4j2
public class MarketBackgroundApplication {

    public static void main(String[] args) {
        log.info("市场部启动中.....");
        SpringApplication.run(MarketBackgroundApplication.class, args);
        log.info("-----------市场部启动完毕-----------");
    }

}